import { IFeidaoAiWeappPage } from '@dfeidao/atom-wxapp/interfaces';
import render from '@dfeidao/atom-wxapp/render/render';
import videoContext from '@dfeidao/atom-wxapp/api/media/create-video-context';
import exitFullScreen from '@dfeidao/atom-wxapp/api/media/exit-full-screen';
import get from '@dfeidao/atom-wxapp/local/get';
import remove from '@dfeidao/atom-wxapp/local/remove';
export default async function a004(fd: IFeidaoAiWeappPage, ...args: any[]) {
	render(fd, {
		play: '',
		showDots: true,
		autoplay: true
	});
	if (get(fd, 'videoid')) {
		const vcon = await videoContext(get(fd, 'videoid'));
		await exitFullScreen(vcon);
		remove(fd, 'videoid');
	}
}



